{% for s in 0..2 -%}
    foo{% if loop.first %} (first){% endif %}{% if loop.last %} (last){% endif %}
{% endfor -%}

{% for s in init..1 -%}
    bar
{% endfor -%}

{% for s in 0..end -%}
    foo
{% endfor -%}

{% for s in init..end -%}
    bar
{% endfor -%}
